package com.icim.csot.exporter.mapkey;

public class OpeKey {

    private String opeId;
    private String opeVer;

    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    public String getOpeVer() {
        return opeVer;
    }

    public void setOpeVer(String opeVer) {
        this.opeVer = opeVer;
    }

    
    public OpeKey() {
        super();
    }

    public OpeKey(String opeId, String opeVer) {
        super();
        this.opeId = opeId;
        this.opeVer = opeVer;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((opeId == null) ? 0 : opeId.hashCode());
        result = prime * result + ((opeVer == null) ? 0 : opeVer.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        OpeKey other = (OpeKey) obj;
        if (opeId == null) {
            if (other.opeId != null)
                return false;
        } else if (!opeId.equals(other.opeId))
            return false;
        if (opeVer == null) {
            if (other.opeVer != null)
                return false;
        } else if (!opeVer.equals(other.opeVer))
            return false;
        return true;
    }

}
